﻿using CuaHangLego.Webform.App_Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CuaHangLego.Webform
{
    public partial class Source : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GotoTagetPage_Click(object sender, EventArgs e)
        {
            Response.Redirect("Target?Test=Hello ASP");
        }

        protected void ServerTranfer_Click(object sender, EventArgs e)
        {
            Server.Transfer("Target.aspx?Test=Hello ASP");
        }

        protected void Unnamed3_ServerValidate(object source, ServerValidateEventArgs args)
        {
            if (txtPhone.Text.Length <= 11) args.IsValid = true;
            else args.IsValid = false;
        }


    }
}